package net.mcreator.infinite_storage.procedure;

import net.minecraft.util.text.TextComponentTranslation;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.entity.Entity;

import net.mcreator.infinite_storage.ElementsInfiniteStorageMod;

import java.util.Map;
import java.util.HashMap;

@ElementsInfiniteStorageMod.ModElement.Tag
public class ProcedureInfiniteBagPageRet extends ElementsInfiniteStorageMod.ModElement {
	public ProcedureInfiniteBagPageRet(ElementsInfiniteStorageMod instance) {
		super(instance, 47);
	}
	static Map<String, Object> $_dependencies = new HashMap<>();
	public static String executeProcedure(Map<String, Object> dependencies) {
		if (dependencies.get("entity") == null) {
			return "";
		}
		Entity entity = (Entity) dependencies.get("entity");
		String StringTemp = "";
		String StringTemp2 = "";
		NBTTagCompound InfiniteBag = entity.getEntityData().getCompoundTag("InfiniteBag");
		StringTemp2 = (String) (new java.text.DecimalFormat("0").format(InfiniteBag.getDouble("InfiniteBagPage")));
		StringTemp = (String) (new TextComponentTranslation("gui.infinite_bag.texts.b", (StringTemp2)).getUnformattedComponentText());
		return (StringTemp);
	}
}
